#ifndef THREAD_HELPER_H
#define THREAD_HELPER_H

namespace network {
	class thread_helper {
	public:
		thread_helper():_int(false) {}
		~thread_helper() {}

		void interrupt() {_int = true;}
		bool is_interrupted() const {return _int;}
	private:
		bool _int;
	};
}

#endif
